package org.csc.gateway.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@RefreshScope
@Component
public class Config {

    @Value("${gateway.journal.enabled}")
    private Boolean journalEnabled;

    @Value("${gateway.current-limiting.enabled}")
    private Boolean currentLimitingEnabled;

    @Value("${gateway.current-limiting.ip}")
    private Boolean currentLimitingIp;

    @Value("${gateway.current-limiting.url}")
    private Boolean currentLimitingUrl;

    @Value("${gateway.current-limiting.user}")
    private Boolean currentLimitingUser;


    public Boolean getJournalEnabled() {
        return journalEnabled;
    }

    public void setJournalEnabled(Boolean journalEnabled) {
        this.journalEnabled = journalEnabled;
    }

    public Boolean getCurrentLimitingEnabled() {
        return currentLimitingEnabled;
    }

    public void setCurrentLimitingEnabled(Boolean currentLimitingEnabled) {
        this.currentLimitingEnabled = currentLimitingEnabled;
    }

    public Boolean getCurrentLimitingIp() {
        return currentLimitingIp;
    }

    public void setCurrentLimitingIp(Boolean currentLimitingIp) {
        this.currentLimitingIp = currentLimitingIp;
    }

    public Boolean getCurrentLimitingUrl() {
        return currentLimitingUrl;
    }

    public void setCurrentLimitingUrl(Boolean currentLimitingUrl) {
        this.currentLimitingUrl = currentLimitingUrl;
    }

    public Boolean getCurrentLimitingUser() {
        return currentLimitingUser;
    }

    public void setCurrentLimitingUser(Boolean currentLimitingUser) {
        this.currentLimitingUser = currentLimitingUser;
    }
}
